<?php

class Application_Model_DbTable_Staffs extends Zend_Db_Table_Abstract
{

    protected $_name = 'staffs';
	
    public function getStaffs($staff_no)
    {
    	$staff_no = (int) $staff_no;
    	$row = $this->fetchRow('staff_no = '. $staff_no);
    	if (!$row) {
    		throw new Exception("Could not find row $staff_no");
    	}
    	return $row->toArray();
    }

}

